import zeep
import pandas as pd
from aibox.data.converter import ConverterDF
from aibox.data.data_rule_df import TypeRule

s = pd.to_numeric('str', errors='coerce')
segCdf = ConverterDF([TypeRule('id', 'object')])

url = 'http://ws.webxml.com.cn/WebServices/WeatherWS.asmx?WSDL'
client = zeep.Client(wsdl=url)
print(client.service.getWeather('北京'))



# import urllib.request
# page = urllib.request.urlopen("http://ws.webxml.com.cn/WebServices/WeatherWS.asmx?WSDL")
# lines = page.readlines()
# page.close()
# document = ""
# for line in lines :
#     document = document + line.decode('utf-8')

print('ok')